<?php
namespace app\admin\model;


class Order extends BaseModel{

    public function getStatusNameAttr($value,$data)
    {
        $status = [1=>'未支付',2=>'已支付'];
        return $status[$data['status']];
    }
    
}